﻿/*----------------------------------------------------------------
 * 
 * 版权所有：Copyright (C) 2013 Q.FunnyFace
 * 
 * 文件名：ArticlePartitionInfo.cs
 * 文件功能描述：
 * 
 * 
 * 作 者：zhangq
 * 邮 箱：ifunnyface@outlook.com
 * 日 期：2013-01-07 10:34:45
 * 
 * 
 * 修改标识： Author
 * 修改描述： 相关描述
 * 
 * ---------------------------------------------------------------- */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DomainModel
{

    /// <summary>
    /// 
    /// </summary>
    public class ArticlePartitionInfo
    {

        /// <summary>
        /// 
        /// </summary>
        public ArticlePartitionInfo()
        {
            // TODO:
            //Children = new List<ArticlePartitionInfo>();
        }


        /// <summary>
        /// 类别Id
        /// </summary>
        public string PartitionId { get; set; }


        /// <summary>
        /// 类别名
        /// </summary>
        public string Name { get; set; }


        /// <summary>
        /// 类别描述
        /// </summary>
        public string Description { get; set; }


        /// <summary>
        /// 父类别Id
        /// </summary>
        public string ParentId { get; set; }


        /// <summary>
        /// 是否启用 0=禁用，1=启用
        /// </summary>
        public int Enabled { get; set; }


        /// <summary>
        /// 排序号
        /// </summary>
        public int SortNumber { get; set; }


        /// <summary>
        /// 层级
        /// </summary>
        public int Level { get; set; }


        /// <summary>
        /// 是否有子 0=否、1=是
        /// </summary>
        public int HasChildren { get; set; }


        /// <summary>
        /// 子集分类
        /// </summary>
        public virtual IList<ArticlePartitionInfo> Children { get; set; }



        public virtual ArticlePartitionInfo ArticlePartition { get; set; }

    }

}